﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Aden.Model.Stock
{
    public class TransData : ICloneable
    {
        public string lineGuid { get; set; }
        public string orderGUID { get; set; }
        public string orderLineGUID { get; set; }
        public string costCenterCode { get; set; }
        public string toCostCenterCode { get; set; }
        public string itemCode { get; set; }
        public string itemName { get; set; }
        public bool isServiceItem { get; set; }
        public string supplierCode { get; set; }
        public string customerCode { get; set; }
        public string uom { get; set; }
        public decimal? stockQty { get; set; }
        public decimal? qty { get; set; }
        public decimal? purQty { get; set; }
        public decimal? itemPrice { get; set; }
        public decimal? purPrice { get; set; }
        public decimal? itemCost { get; set; }
        public string coa { get; set; }
        public List<TransLine> lines { get; set; }
        public List<string> orderLineGUIDtoTblTransData { get; set; }
        public string completeFlag { get; set; }
        public string remark { get; set; }
        public string stockUnit { get; set; }
        public decimal purStk_Conversion { get; set; }

        public object Clone()
        {
            try
            {
                return (TransData)this.MemberwiseClone();
            }
            catch (NotImplementedException e)
            {
                throw e;
            }
            catch(Exception e)
            {
                throw e;
            }
        }

    }

    public class TransLine
    {
        public decimal itemCost { get; set; }
        public decimal stockQty { get; set; }
    }
}
